﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>圈圈商城</title>
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<style type="text/css">body,p,img{marign:0;padding:0;background-color:#fff}p{text-indent:2em;line-height:1.2}img{display:block}</style>
</head>
<body>
<p id="contentBox"></p>
<div id="imgListBox"></div>
</body>
<Script>
var contentBox = document.getElementById("contentBox");
var imgListBox = document.getElementById("imgListBox");
//所有和deviceone相关的调用都需要放在onDeviceOneLoaded回调函数里，类似JQuery的ready方法
window.onDeviceOneLoaded = function() {
	var nf = sm("do_Notification");
	var app = sm("do_App");
	var page = sm("do_Page");
	var global = sm("do_Global");
	var common = require("common");
	var mallUrl = require("url/mall");
	var qqHttp = require("helper/http");
	var productId = global.getMemory("productIdData");
	qqHttp.post(mallUrl.url.product.resume, {id:productId}, function(data) {
		//详情图片
		var resumeImgs = data.imgItems;
		var jsonResumeImgs = [];
		if(resumeImgs.length > 0){
			for (var j = 0; j < resumeImgs.length; j++) {
				jsonResumeImgs.push('<img src = "'+resumeImgs[j].source+'" width="100%">');
			}
		}
		contentBox.innerHTML = data.resumeText;
		imgListBox.innerHTML = jsonResumeImgs.join("");
	});
}
</Script>
</html>
